package com.edu.Controller;

import org.omg.CORBA.Current;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.util.calendar.BaseCalendar;

import javax.lang.model.element.VariableElement;
import java.util.Date;

/**
 * @author zyk
 * @date 2024/4/11 17:19
 * @return
 */

@RestController
@RequestMapping("/hello")
public class HelloController {
    static int count =0;

    @GetMapping("")
    public String hello()
    {
        Date date=new Date();
            count++;
        System.out.println("Hello World Linux!"+count+"==========+========="+date.toString());
        return "Hello World Linux!"+count+"==================="+ date.toString();
    }
}
